{{/* vim: set filetype=mustache: */}}
{{- /*
service.labels.standard prints the standard service Helm labels.
The standard labels are frequently used in metadata.
*/ -}}

{{- define "service.microservice.labels" -}}
crcloud.com/version: {{ .Chart.Version | quote }}
crcloud.com/service: {{ .Chart.Name | quote }}
crcloud.com/metrics-port: {{ .Values.deployment.managementPort | quote }}
{{- end -}}

{{- define "service.labels.standard" -}}
crcloud.com/release: {{ .Values.service.name | quote }}
{{- end -}}

{{- define "service.match.labels" -}}
crcloud.com/release: {{ .Values.service.name | quote }}
{{- end -}}
